import Cookies from "js-cookie";
const tokenName = "administrator_token123456";

const setToken = (token) => {
  if (token) Cookies.set(tokenName, token);
};

const getToken = () => {
  return Cookies.get(tokenName) || "";
};

const removerToken = () => {
  return Cookies.remove(tokenName);
};

export default {
  setToken,
  getToken,
  removerToken,
};
